package com.base.service.impl;

import com.base.mapper.voipmapper.CarParkOrderMapper;
import com.base.po.voip.CarParkOrder;
import com.base.po.voip.CarParkOrderExample;
import com.base.service.CarParkOrderService;
import com.base.utils.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("Service")
public class CarParkOrderServiceImpl implements CarParkOrderService {
	
	@Autowired
	private CarParkOrderMapper carParkOrderMapper;

	@Override
	public int countByExample(CarParkOrderExample example) {
		return carParkOrderMapper.countByExample(example);
	}

	@Override
	public int deleteByExample(CarParkOrderExample example) {
		return carParkOrderMapper.deleteByExample(example);
	}

	@Override
	public int insert(CarParkOrder record) {
		return carParkOrderMapper.insert(record);
	}

	@Override
	public int insertSelective(CarParkOrder record) {
		return carParkOrderMapper.insertSelective(record);
	}

	@Override
	public List<CarParkOrder> selectByExample(CarParkOrderExample example) {
		return carParkOrderMapper.selectByExample(example);
	}

	@Override
	public List<CarParkOrder> selectAllOrder(Page page, String parentid) {
		return carParkOrderMapper.selectAllOrder(page, parentid);
	}

	@Override
	public List<CarParkOrder> selectUserOrder(Page page, String userid) {
		return carParkOrderMapper.selectUserOrder(page, userid);
	}

	@Override
	public CarParkOrder selectByPrimaryKey(String orderid) {
		return carParkOrderMapper.selectByPrimaryKey(orderid);
	}

	@Override
	public int updateByExampleSelective(CarParkOrder record, CarParkOrderExample example) {
		return carParkOrderMapper.updateByExampleSelective(record, example);
	}

	@Override
	public int updateByExample(CarParkOrder record, CarParkOrderExample example) {
		return carParkOrderMapper.updateByExample(record, example);
	}

	@Override
	public int updateByPrimaryKeySelective(CarParkOrder record) {
		return carParkOrderMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int countAllOrder(String parentid) {
		return carParkOrderMapper.countAllOrder(parentid);
	}

	@Override
	public int countUserOrder(String userid) {
		return carParkOrderMapper.countUserOrder(userid);
	}
}
